package com.senmiao.ssm.service;

import com.senmiao.ssm.utils.Result;

import java.util.List;

/**
 * 系统管理员服务类
 */
public interface SystemManagerService {
    Result createAdmin(String account, String username, String phone, String email, List<Integer> roleId);

    Result updateAdminDisable(Integer adminId, Integer disable);

    Result deleteAdmin(Integer adminId);

    Result listAdmin(Integer pageNum, Integer limit);

    Result getAllRole();

    Result updateAdminRole(Integer adminId,String username,String phone,String email,List<Integer> roleIds);

    Result resetAdminPassword(Integer adminId);

    Result listRole(Integer pageNum, Integer limit);

    Result updateRoleComment(Integer roleId,String comment);

    Result deleteRole(List<Integer> roleId);

    Result createRole(String roleName, String comment);

    Result listPermission(Integer pageNum, Integer limit);

    Result listLoginAndLogoutLog(Integer pageNum, Integer limit);

    Result getAllPermission();
}